package com.dd.service.Impl;

import com.dd.dao.StuDao;
import com.dd.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class StuServiceImpl implements StuService {

    @Autowired
    @Qualifier("StuDao1")
    StuDao stuDao;

    //set
//    @Autowired
//    @Qualifier("StuDao2")
//    public void setUserDao(StuDao stuDao) {
//        this.stuDao = stuDao;
//    }


    public void save() {
        stuDao.save();
    }

    public void getList() {
        stuDao.getList();
    }
}
